package com.audible.library.database;

import com.audible.library.domain.beans.UserAudioBook;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 * The class defines CRUD methods for UserAudioBook in the database.
 *
 * @author Jigar Shah
 * @version 0.1
 */
@Stateless
public class UserAudioBookFacade extends AbstractFacade<UserAudioBook> {
    @PersistenceContext(unitName = "AudibleLibraryWebPU")
    private EntityManager em;

    protected EntityManager getEntityManager() {
        return em;
    }

    public UserAudioBookFacade() {
        super(UserAudioBook.class);
    }
}
